<template>
  <div class="">
    <div class="title">
      周末去哪儿
    </div>
    <ul>
      <li class="item" v-for="item of weekendList" :key="item.id">
        <img class="item-img" :src="item.imgUrl" alt="">
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  },
  data () {
    return {

    }
  },
  components: {

  }
}
</script>

<style scoped lang="stylus">
  @import '~styles/mixins.styl'
  .title
    background #eee
    text-indent .2rem
    line-height 0.8rem
  .item
    width 100%
    .item-img
      width 100%
    .item-info
      min-width 0
      padding 0.15rem
      .item-title
        line-height 0.54rem
        font-size 0.32rem
        ellipsis()
      .item-desc
        line-height 0.4rem
        color #ccc
        ellipsis()
      .item-button
        background #ff9300
        line-height .44rem
        padding 0 0.2rem
        border-radius 0.06rem
        margin-top 0.16rem
        color #fff
        font-size 0.14rem
</style>
